package com.ls.controller;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import cn.tedu.crm.entity.Industry;
import cn.tedu.crm.service.IIndustryService;
import cn.tedu.crm.util.JsonResult;

@Controller
@RequestMapping("/industry")
public class IndustryController {
	@Resource(name = "industryService")
	IIndustryService service;
	
	/**
	 * 查询全部合同
	 * @param pageId  默认第一页
	 * @param num	一页几条记录
	 * @return
	 */
	@RequestMapping("/option.do")
	@ResponseBody
	public JsonResult<List<Industry>> findCustomerFenye() {
		JsonResult<List<Industry>> result = service.findIndustry();
		return result;
	}
	
}
